<?php
/**
 * OA_Smarty.php
 *
 * $Id: OA_Smarty.php 182 2012-02-25 06:59:14Z leikou@163.com $
 */

class_exists('Smarty') || require '/home/website/yuetian-oa/application/libraries/smarty/Smarty.class.php';

class OA_Smarty extends Smarty
{
	
	public function __construct()
	{
		parent::__construct();
		$ci =& get_instance();
		
		$config = $ci->config->item('smarty');
		if($config)
		{
			foreach($config as $k => $v)
			{
				$this->$k = $v;
			}
		}
	}
	
}

/* End file of OA_Smarty.php */
/* Location: OA_Smarty.php */
